{**
Update logs
10/01/2010      immanuel192         Enable SEO Support
									Remove fancybox                                    
*}    
{include file="`$smarty.const.BASE`modules/common/views/_permission_icons.tpl"}
	{if $enable_rss == true}<a class="rsslink" href="{rsslink}">{$_TR.alt_rssfeed}</a>{/if}
	<table border=0>
		<tr>
			<td>
				<img src="{$smarty.const.THEME_RELATIVE}modules/newsmodule/images/agendar.png" border=0 width=48 height=48>
			</td>
		{if $moduletitle != ""}
				<td  style="vertical-align: middle;">
					<h1 style=" margin: 0;">{$moduletitle}</h1>
				</td>
		{/if}
		</tr>
	</table>
<div class="articlemodule" >    
	
	{foreach key="key" name="object" from=$news item=newsitem}
	<div style="padding-top: 10px;">
		{if $newsitem->isRss != true}
			{permissions level=$smarty.const.UILEVEL_PERMISSIONS}
				<div class="itemactions">
					{if $permissions.administrate == true || $newsitem->permissions.administrate == true}
						<a href="{link action=userperms int=$newsitem->id _common=1}"><img src="{$smarty.const.ICON_RELATIVE}userperms.png" title="{$_TR.alt_userperm_one}" alt="{$_TR.alt_userperm_one}" {$smarty.const.XHTML_CLOSING}></a>&nbsp;
						<a href="{link action=groupperms int=$newsitem->id _common=1}"><img src="{$smarty.const.ICON_RELATIVE}groupperms.png" title="{$_TR.alt_groupperm_one}" alt="{$_TR.alt_groupperm_one}" {$smarty.const.XHTML_CLOSING}></a>
					{/if}
					{if $permissions.edit_item == true || $newsitem->permissions.edit_item == true}
						{if $newsitem->approved == 2} {* in ap *}
							<img src="{$smarty.const.ICON_RELATIVE}edit.disabled.png" title="{$_TR.alt_edit_disabled}" alt="{$_TR.alt_edit_disabled}" {$smarty.const.XHTML_CLOSING}>
						{else}
							<a href="{link action=edit id=$newsitem->id}"><img src="{$smarty.const.ICON_RELATIVE}edit.png" title="{$_TR.alt_edit}" alt="{$_TR.alt_edit}" {$smarty.const.XHTML_CLOSING}></a>
						{/if}
					{/if}
					{if $permissions.delete_item == true || $newsitem->permissions.delete_item == true}
						{if $newsitem->approved == 2} {* in ap *}
							<img src="{$smarty.const.ICON_RELATIVE}delete.disabled.png" title="{$_TR.alt_delete_disabled}" alt="{$_TR.alt_delete_disabled}" {$smarty.const.XHTML_CLOSING}>
						{else}
							<a onclick="return confirm('{$_TR.delete_confirm}');" href="{link action=delete id=$newsitem->id}"><img src="{$smarty.const.ICON_RELATIVE}delete.png" title="{$_TR.alt_delete}" alt="{$_TR.alt_delete}" {$smarty.const.XHTML_CLOSING}></a>
						{/if}
					{/if}
					{if $permissions.manage_approval == 1}
						<a class="managerevisions" href="{link module=workflow datatype=newsitem m=newsmodule s=$__loc->src action=revisions_view id=$newsitem->id}" title="{$_TR.alt_revisions}">
							<img src="{$smarty.const.ICON_RELATIVE}revisions.png" alt="{$_TR.revisions}" {$smarty.const.XHTML_CLOSING}>
						</a>
					{/if}
				</div>
			{/permissions}
		{/if}
		<!-- news item list -->
		<div class="contentpaneopen">
		{if $newsitem->title != ""}
		<a id="news_{$newsitem->id}" class="article_title_link" href="{if $newsitem->isRss}{$newsitem->rss_link}{else}{link action=view id=$newsitem->internal_name src=$newsitem->cur_loc}{/if}" class="contentpagetitle">{$newsitem->title}</a>
		{/if}
		<div class="article-tools clearfix">
			<div class="article-meta">
				<span class="createdate">{$newsitem->datetime}</span>
			</div>
		</div>
		
		<div class="article_summary">
			<img class="caption" src="{$smarty.const.BASE_URL}/phpThumb.php?src={$newsitem->image}&w=120&h=120" border="1" align="left" style="padding: 1px; margin-right: 6px;" />
			<div><img src="{$smarty.const.THEME_RELATIVE}images/quote.gif" border=0>
			
			{if $newsitem->summary != ""}
				{$newsitem->summary}
			{else}
				{$newsitem->body|summarize:"html":"para"}
			{/if}
		</div>
			<div align=right><a id="news_more_{$newsitem->id}" href="{if $newsitem->isRss}{$newsitem->rss_link}{else}{link action=view id=$newsitem->internal_name src=$newsitem->cur_loc}{/if}" >{$_TR.read_more}</a>&nbsp;&nbsp;&nbsp;</div>
		</div>
		{*if $smarty.foreach.object.first !=1 && $smarty.foreach.object.last !=1 *}
		<span class="article_separator">&nbsp;</span>
  </div>
</div>
{/foreach}
	{*permissions level=$smarty.const.UILEVEL_NORMAL}
		{if $morenews == 1 || $permissions.add_item == true || ($in_approval > 0 && $canview_approval_link == 1) || $permissions.view_unpublished == 1}
			<div class="moduleactions">
				{if $morenews == 1}
					<a class="viewmorenews" href="{link action=view_all_news}">{$_TR.view_all}</a>{br}
				{/if}
				{permissions level=$smarty.const.UILEVEL_NORMAL}
					{if $permissions.add_item == true}
						<a class="addnews" href="{link action=edit}">{$_TR.create_news}</a>{br}
					{/if}
					{if $in_approval > 0 && $canview_approval_link == 1}
						<a class="approvenews" href="{link module=workflow datatype=newsitem m=newsmodule s=$__loc->src action=summary}">{$_TR.view_approval}</a>{br}
					{/if}
					{if $permissions.view_unpublished == 1 }
						<a class="expirednews" href="{link action=view_expired}">{$_TR.view_expired}</a>{br}
					{/if}
				{/permissions}
			</div>
		{/if}
	{/permissions*}
</div>


